package com.itheima.demo5;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;

public class IODemo17 {
    public static void main(String[] args) throws IOException {
        File file1 = new File("a.txt");
        File file2 = new File("c.txt");

        FileUtils.copyFile(file1,file2);


//        FileUtils.copyDirectory(,);//复制文件夹内的内容
//        FileUtils.copyDirectoryToDirectory(,);//复制整个文件夹到新文件夹内
    }
}
